package co.edu.poli.ficb.agl.automatable.examples;

import java.awt.BorderLayout;
import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;

import co.edu.poli.ficb.agl.automatable.gui.PanelAutomata;
import co.edu.poli.ficb.agl.automatable.modelo.automatas.AutomataUtil;

/**
 * 
 * @author Diego
 *
 */
public class PanelAutomataDemo {

	public static void main(String[] args) {
		JFrame frame = new JFrame();
		
		JPanel panel = new JPanel();
		panel.setLayout(new GridLayout(1,1));
		panel.add(new PanelAutomata(AutomataUtil.getAutomataUnionMultiplo23()));
		//panel.add(new PanelAutomata(AutomataUtil.getAutomataFigura32()));
		//panel.add(new PanelAutomata(AutomataUtil.getAutomataFigura32()));
		
		frame.getContentPane().setLayout(new BorderLayout());
		frame.getContentPane().add(panel);
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
		frame.pack();
		
	}
}
